package prjo;

/**
 * @author shkstart
 * @creat 15:26 2022/6/3
 */

public class dish {
    private int id;
    private String name;
    private int price;
    private int nece;


    public dish() {
    }

    public dish(int id, String name, int price, int nece) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.nece = nece;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getNece() {
        return nece;
    }

    public void setNece(int nece) {
        this.nece = nece;
    }

    @Override
    public String toString() {
        return "dish{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", nece=" + nece +
                '}';
    }
}
